package com.atguigu.ssyx.acl.service;

import com.atguigu.ssyx.model.acl.Permission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface PermissionService extends IService<Permission> {

    //查询所有菜单
    List<Permission> queryAllPermission();
    //递归删除菜单
    void removeChildById(Long id);
    //获取所有菜单，和根据角色id查询角色分配菜单列表
    Map<String, Object> getPermissionByRoleId(Long roleId);
}
